package main

import "fmt"

type monkey struct {
	name string
}

func (this *monkey) climb() {
	fmt.Printf("%v猴子爬树", this.name)
}

type minMonkey struct {
	monkey
}

func main() {
	var min minMonkey = minMonkey{
		monkey{
			name: "孙悟空",
		},
	}
	min.climb()

}
